﻿using UnityEngine;
using System.Collections;

/// <summary>
/// 하드코딩된 암호 정보
/// </summary>
public class CodexData
{
	public static Codex		testCodex;
	public static Codex		testCodex2;

	public static Codex			question;

	public static Codex			master_nonloop;

	public static Codex			accident;
	public static Codex			proposal;
	public static Codex			secret1;
	public static Codex			secret2;

	public static Codex			unkmessage;
	public static Codex			diary;

	public static Codex			memo;


	static bool			s_dataSet	= false;

	static CodexData()
	{
		//testCodex	= new Codex("testtext", false, 0, false);
		//testCodex2	= new Codex("testtext", false, 3, true);

		master_nonloop	= new Codex("008", false, 0, true);

		accident		= new Codex("001", true, 1, false);
		proposal		= new Codex("002", true, 0, false);

		secret1			= new Codex("003", true, 3, false);
		secret2			= new Codex("004", true, 3, false);

		unkmessage		= new Codex("005", true, 2, false);

		diary			= new Codex("006", true, 0, false);

		memo			= new Codex("007", true, 0, true);

		question		= new Codex("000", false, 0, false);
	}

	public static void SetupData()
	{
		if(!s_dataSet)
		{
			/*
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			CodexManager.AddCodex(testCodex);
			*/


			CodexManager.AddCodex(master_nonloop);
			CodexManager.AddCodex(question);
			CodexManager.AddCodex(diary);
			CodexManager.AddCodex(accident);
			CodexManager.AddCodex(proposal);
			CodexManager.AddCodex(secret1);
			CodexManager.AddCodex(secret2);
			CodexManager.AddCodex(unkmessage);
			CodexManager.AddCodex(memo);

			s_dataSet	= true;
		}
	}
}
